DOCUMENT = ECRTS

#GRAPHICS_FOLDER = figures
GARBAGE = *.ps *.dvi ${DOCUMENT}.pdf *.aux *.toc *.idx *.ind *.ilg *.log *.out \
          *.lof *.lot *.loa *.bbl *.blg *~

ps: all

all:
	#$(MAKE) -C $(GRAPHICS_FOLDER) pdf
	pdflatex $(DOCUMENT).tex; \
	bibtex $(DOCUMENT); \
	pdflatex $(DOCUMENT).tex; \
	pdflatex $(DOCUMENT).tex

clean:
	#$(MAKE) -C $(GRAPHICS_FOLDER) clean
	rm -f ${GARBAGE}

warnings:
	$(MAKE) 2>&1 | grep "Warning"

html:
	latex2html -split 0 -nonavigation -no_images -dir html -mkdir -notransparent \
       -white $(DOCUMENT).tex